package psn.kiko.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分页数据统一格式
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页查询响应内容")
public class PageResult<T>{
	/**
	 * 总记录数
	 */
	@ApiModelProperty(value = "总记录数", required = true)
	private Integer total;
	/**
	 * 当前页数据
	 */
	@ApiModelProperty(value = "当前页数据", required = true)
	private T data;
}
